import React from 'react';
import { renderRouter, RouterConfg } from '@/router/router';
import { Link } from 'react-router-dom';

export default function LoginPage(props: {
  routers: RouterConfg | RouterConfg[];
}) {
  return (
    <div className="login-page">
      <div className="nav">
        <Link to={'/document/sub'}>Sub</Link>
        ----------------------------
        <Link to={'/document/fub'}>Fub</Link>
      </div>
      {renderRouter(props.routers)}
    </div>
  );
}
